package com.atguigu.eduorder.client;

import com.atguigu.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author lishan
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    /**
     * 根据课程id查询课程信息
     * @param courseId
     * @return
     */
    @PostMapping("/eduservice/courseFront/getCourseInfo/{courseId}")
    CourseWebVoOrder getCourseInfo(@PathVariable("courseId") String courseId);
}
